package com.southpark.demo.control.events
{
	import com.southpark.framework.control.events.AbstractEvent;
	import com.southpark.framework.control.responders.IResponder;
	import com.southpark.system.interfaces.application.IApplication;
	import com.southpark.system.interfaces.managers.IApplicationManager;
	
	import flash.utils.getQualifiedClassName;
	
	import mx.core.FlexGlobals;
	
	
	public class BaseEvent extends AbstractEvent
	{
		
		public function BaseEvent(type:String,responder:IResponder)
		{
			super(type,responder);
		}
		
		override protected function manageUnmappedEvent():void
		{
			super.manageUnmappedEvent();
			
			var applicationManager:IApplicationManager = IApplication(FlexGlobals.topLevelApplication).applicationManager;
			applicationManager.infoManager.showApplicationError("Event [" + getQualifiedClassName(this) + "] is not mapped");

		}
	}
}